<template>
  <div id="app">
    <router-view />
    <div
      class="hide"
      v-if="!$route.params.itemid && $route.name != 'city'"
    ></div>
    <my-footer
      v-if="!$route.params.itemid && $route.name != 'city'"
    ></my-footer>
    <buy-wraper v-if="$route.params.itemid"></buy-wraper>
  </div>
</template>
<script>
import MyFooter from "./components/MyFooter.vue";
import BuyWraper from "./components/BuyWraper.vue";
export default {
  components: {
    MyFooter,
    BuyWraper,
  },
};
</script>

<style lang="less">
* {
  padding: 0;
  margin: 0;
}
a {
  text-decoration: none;
  color: #333;
}
ul,
li {
  list-style: none;
}
.footer a.router-link-active {
  color: #f03d37;
}
.hide {
  width: 10rem;
  height: 49px;
}
</style>
